package org.example.designPattern.structural.adapter;

public class Adapter implements TargetInterface{
    private CurrentClass currentClass;

    public Adapter(CurrentClass currentClass) {
        this.currentClass = currentClass;
    }

    @Override
    public void prepareMethod() {
        currentClass.preMethod();
    }

    @Override
    public void execute() {

    }

    @Override
    public void afterMethod() {
        currentClass.postMethod();
    }
}
